<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>method</title>
</head>

<body>
    <script src="../src/ajax.js"></script>
    <script>
        Ajax.get('/base/get', { bar: 'baz' }, function(response){
            console.log('get-after-1', response)
        })
        Ajax.post('/base/post', { a: 1, b: 2 }, function(response){
            console.log('post-after-1', response)
        })
        Ajax.get('/base/get', function(response){
            console.log('get-after-2', response)
        })
        Ajax.post('/base/post', function(response){
            console.log('post-after-2', response)
        })
    </script>
</body>

</html>